#!usr/bin/node

const http = require('https'),
      url = require('url'),
      city = process.argv[2] || '石家庄';

const address ='https://api.66mz8.com/api/weather.php?location='+city; 

http.get(address,(res) => {
  console.log(`HTTP/${res.httpVersion} ${res.statusCode} ${res.statusMessage}`);
  console.log(res.headers);
  res.pipe(process.stdout);
})
